const mongoose = require('mongoose');
const Schema = mongoose.Schema;
mongoose.connect('mongodb://localhost:27017/user', { useNewUrlParser: true, useUnifiedTopology: true });
let userSchema = new Schema({
    schoolNum: {
        type: String,
        required: true
    },
    userName: {
        type: String,
        required: true
    },   
    password: {
        type: String,
        required: true
    },
})
module.exports = mongoose.model('User', userSchema);